<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  	<meta charset="utf-8" />
	<title>Metronic | Data Tables - Advanced Tables</title>
	<meta content="width=device-width, initial-scale=1.0" name="viewport" />
	<meta content="" name="description" />
	<meta content="" name="author" />
	<!-- BEGIN GLOBAL MANDATORY STYLES -->
	<link href="../style/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
	<link href="../style/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"/>
	<link href="../style/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
	<link href="../style/css/main-back.css" rel="stylesheet" type="text/css"/>
	<link href="../style/css/style.css" rel="stylesheet" type="text/css"/>
	
	<!-- END GLOBAL MANDATORY STYLES -->
	<link href="../style/css/glyphicons.css" rel="stylesheet" />
	<link href="../style/css/halflings.css" rel="stylesheet" />
	<!-- END PAGE LEVEL STYLES -->
	<link rel="shortcut icon" href="../style/image/favicon.ico" />
	<style type="text/css">
	a{
	color:#999999;
	}
	
	</style>
	
	<script type="text/javascript" src="../style/js/select2.min.js"></script>
	<style type="text/css">
	</style>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  
  
  <body>
  	<script type="text/javascript">
  		var idx = 0;
		function add() {
			if(idx<7){
				var para=document.createElement("input");
				para.setAttribute("type", "file");
				para.setAttribute("name", "image");
			
				var element=document.getElementById("fileDiv");
				element.appendChild(para);
				idx++;
			}
		}
	</script>
  
  
  	<div class="main">
	  <div>
	    <ul class="breadcrumb">
	      <li> <i class="icon-home"></i> 主页 <span class="icon-angle-right"></span> </li>
		   <li>  募捐管理 <span class="icon-angle-right"></span> </li>
		   <li>  发布物品 <span class="icon-angle-right"></span> </li>
	    </ul>
	  </div>
	</div>
  	<div class="portlet box green">
	  <div class="portlet-title">
	    <div class="caption">发布物品信息</div>
	  </div>
  	  <div class="portlet-body">
  	  	<form name="goodForm" action="<%=basePath %>eight/item!release" method="post" enctype="multipart/form-data">
  	  		<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
			<TBODY>
			
			<TR>
				<TD width="9%"><strong>物品名称</strong></TD>
				<TD width="26%"><input name="itemName" type="text" class="TEXT165" id="usernamez" maxlength="20" required="required"></TD>
			</TR>
			<TR>
			  <TD>&nbsp;</TD>
			</TR>
			
			<TR>
				<TD width="9%"><strong>类目</strong></TD>
				<TD width="26%">
					<s:select name="itemType" list="{'服装','鞋包','配饰','运动','珠宝','数码','家电','美妆','母婴','家居','食品','百货','汽车','文娱','虚拟'}" theme="simple" headerKey="" headerValue="请选择"></s:select>
				</TD>
			</TR>
			<TR>
			  <TD>&nbsp;</TD>
			</TR>
			
			<TR>
				<TD width="9%"><strong>新旧</strong></TD>
				<TD width="26%">
					<s:select name="howOld" list="{'非全新','全新'}" theme="simple"></s:select>
				</TD>
			</TR>
			<TR>
			  <TD>&nbsp;</TD>
			</TR>
			
			<TR>
				<TD width="9%"><strong>起拍价</strong></TD>
				<TD width="26%">
					<input name="floorPrice" type="text" class="TEXT165" id="usernamez" maxlength="20" required="required">
					元
				</TD>
			</TR>
			<TR>
			  <TD>&nbsp;</TD>
			</TR>
			
			<TR>
				<TD width="9%"><strong>加价幅度</strong></TD>
				<TD width="26%">
					<input name="rate" type="text" class="TEXT165" id="usernamez" maxlength="20" required="required">
					元
				</TD>
			</TR>
			<TR>
			  <TD>&nbsp;</TD>
			</TR>
			
			<TR>
				<TD width="9%"><strong>开始时间</strong></TD>
				<TD width="26%">
					<input type="datetime-local" name="releaseTime"/>
				</TD>
			</TR>
			<TR>
			  <TD>&nbsp;</TD>
			</TR>
			
			<TR>
				<TD width="9%"><strong>持续时间</strong></TD>
				<TD width="26%">
					<s:select name="duration" list="{'7天','14天'}" theme="simple"></s:select>
				</TD>
			</TR>
			<TR>
			  <TD>&nbsp;</TD>
			</TR>
			
			<TR>
				<TD width="9%"><strong>物品描述</strong></TD>
				<TD width="26%">
					<textarea name="content" cols="36" rows="8" id="content" style="border: 1 solid #888888;LINE-HEIGHT:18px;padding: 3px;"></textarea>   
				</TD>
			</TR>
			<TR>
			  <TD>&nbsp;</TD>
			</TR>
					
			<TR>
				<TD width="9%"><strong>物品图片</strong></TD>
				<TD width="26%">
					<input type="button" name="addbtn" value="添加" onclick="add();"/>
					<div id="fileDiv">
						 <input type="file" name="image"/>
					</div>
					<font style="color:red;margin-left:10px;font-size:12px;">图片格式必须为jpg,png,gif，不超过2M</font> 
				</TD>
			</TR>
			<TR>
			  <TD>&nbsp;</TD>
			</TR>
			
			<TR>
			  <TD>&nbsp;</TD>
			  <TD align="center"><BR>
			    <input name="submit" type="submit" id="submit" value="发布物品并进入审核流程" class="BUTTON40">&nbsp;&nbsp;&nbsp;
			  </TD>
			  <TD>&nbsp;</TD>
			  </TR>
			  
			</TBODY>
			</TABLE>
  	  	</form>
  	  </div>
  	</div>
  </body>
</html>
